package com.freight.order.service;

import com.freight.core.base.FreightBaseService;
import com.freight.core.common.vo.SearchVo;
import com.freight.order.dto.OrderExtendDto;
import com.freight.order.entity.OrderExtend;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * 订单扩展信息接口
 * @author huyingtai
 */
public interface OrderExtendService extends FreightBaseService<OrderExtend, Long> {

    /**
    * 多条件分页获取
    * @param orderExtend
    * @param searchVo
    * @param pageable
    * @return
    */
    Page<OrderExtend> findByCondition(OrderExtend orderExtend, SearchVo searchVo, Pageable pageable);

    Long saveOrderExtend(OrderExtendDto orderExtendDto);

    void updateOrderExtend(OrderExtendDto orderExtendDto);
}